home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / pipnss / nsIFormSigningDialog.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  104 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFormSigningDialog.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIFormSigningDialog_h__
  6. #define __gen_nsIFormSigningDialog_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIInterfaceRequestor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIFormSigningDialog */
  21. #define NS_IFORMSIGNINGDIALOG_IID_STR "4fe04d6d-4b66-4023-a0bc-b43ce68b3e15"
  22.  
  23. #define NS_IFORMSIGNINGDIALOG_IID \
  24.   {0x4fe04d6d, 0x4b66, 0x4023, \
  25.     { 0xa0, 0xbc, 0xb4, 0x3c, 0xe6, 0x8b, 0x3e, 0x15 }}
  26.  
  27. /**
  28.  * nsIFormSigningDialog
  29.  * Provides UI for form signing.
  30.  */
  31. class NS_NO_VTABLE nsIFormSigningDialog : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFORMSIGNINGDIALOG_IID)
  35.  
  36.   /**
  37.    *  confirmSignText
  38.    *    UI shown when a web site calls crypto.signText,
  39.    *    asking the user to confirm the confirm the signing request.
  40.    *
  41.    *  returns true if the user confirmed, false on cancel
  42.    */
  43.   /* boolean confirmSignText (in nsIInterfaceRequestor ctxt, in AString host, in AString signText, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in PRUint32 count, out PRInt32 selectedIndex, out AString password); */
  44.   NS_IMETHOD ConfirmSignText(nsIInterfaceRequestor *ctxt, const nsAString & host, const nsAString & signText, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, nsAString & password, PRBool *_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIFORMSIGNINGDIALOG \
  50.   NS_IMETHOD ConfirmSignText(nsIInterfaceRequestor *ctxt, const nsAString & host, const nsAString & signText, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, nsAString & password, PRBool *_retval); 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  53. #define NS_FORWARD_NSIFORMSIGNINGDIALOG(_to) \
  54.   NS_IMETHOD ConfirmSignText(nsIInterfaceRequestor *ctxt, const nsAString & host, const nsAString & signText, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, nsAString & password, PRBool *_retval) { return _to ConfirmSignText(ctxt, host, signText, certNickList, certDetailsList, count, selectedIndex, password, _retval); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIFORMSIGNINGDIALOG(_to) \
  58.   NS_IMETHOD ConfirmSignText(nsIInterfaceRequestor *ctxt, const nsAString & host, const nsAString & signText, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, nsAString & password, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConfirmSignText(ctxt, host, signText, certNickList, certDetailsList, count, selectedIndex, password, _retval); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsFormSigningDialog : public nsIFormSigningDialog
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSIFORMSIGNINGDIALOG
  69.  
  70.   nsFormSigningDialog();
  71.  
  72. private:
  73.   ~nsFormSigningDialog();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsFormSigningDialog, nsIFormSigningDialog)
  81.  
  82. nsFormSigningDialog::nsFormSigningDialog()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsFormSigningDialog::~nsFormSigningDialog()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* boolean confirmSignText (in nsIInterfaceRequestor ctxt, in AString host, in AString signText, [array, size_is (count)] in wstring certNickList, [array, size_is (count)] in wstring certDetailsList, in PRUint32 count, out PRInt32 selectedIndex, out AString password); */
  93. NS_IMETHODIMP nsFormSigningDialog::ConfirmSignText(nsIInterfaceRequestor *ctxt, const nsAString & host, const nsAString & signText, const PRUnichar **certNickList, const PRUnichar **certDetailsList, PRUint32 count, PRInt32 *selectedIndex, nsAString & password, PRBool *_retval)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* End of implementation class template. */
  99. #endif
  100.  
  101. #define NS_FORMSIGNINGDIALOG_CONTRACTID "@mozilla.org/nsFormSigningDialog;1"
  102.  
  103. #endif /* __gen_nsIFormSigningDialog_h__ */
  104.